package cn.edu.scau.cmi.pengjiajian.adapter;

public class AdapterOfObject implements Target{
		private Adaptee adaptee;
		
		public AdapterOfObject() {
			adaptee = new Adaptee();
		}
		 
		public int getVoltage() {
			return this.adaptee.getVoltage();
		}
		
		public int changeVoltage(int sourceVoltage, int targetVoltage) {
			if(sourceVoltage == 220)
				return targetVoltage;
			else
				return 0;
		}
}
